    
    <div class="rightinfo">
    
    <?php if (!empty($list)){?>
    <table class="tablelist">
    	<thead>
    	<tr>
        <th colspan="3">问卷统计表</th>
        </tr>
        </thead>
        
        <tbody>
        <?php foreach ($list as $k=>$v){?>
	        <div>
		        <tr>
		        	<td <?php echo ( $k!=0 )?"colspan='3'":"";?>><h1><?php echo $v['id'].'、'.$v['title'];?></h1></td>
		        	<?php if ($k==0){?>
		        	<td><h1>数量</h1></td>
			        <td><h1>比例</h1></td>
			        <?php }?>
		        </tr>
		        <?php if (!empty($v['answer'])){?>
		        <?php foreach ($v['answer'] as $kk=>$vv){?>
		        <tr>
			        <td><?php echo $vv['a_id'].'、'.$vv['name'];?></td>
			        <td><?php echo $vv['a_count'];?></td>
			        <td><?php echo round(($vv['a_count']/$v['count_all'])*100,2)."%";?></td>
		        </tr>  
		        <?php }?>
		        <?php }?>
	        </div>
        <?php }?>
       </tbody>
        
    </table>
     <?php }else{?>
        	暂没数据
     <?php }?>
    
    </div>
    
